package com.fivetiger.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @date 2021/6/20 - 17:08
 * 饮食规划
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Diet {
    private Integer id ;
    /** name;宠物名字 */
    private String name ;
    /** set_meal;套餐 */
    private String setMeal ;
    /** state;宠物状态 */
    private String state ;
    /** time;日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time ;
}
